package cn.tedu.ivos.approval.mapper;

import cn.tedu.ivos.approval.pojo.dto.AuditQueryParam;
import cn.tedu.ivos.approval.pojo.entity.Audit;
import cn.tedu.ivos.approval.pojo.vo.AuditVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AuditMapper {
    int insert(Audit audit);

    List<AuditVO> selectAuditByApplicationId(Long id);

    int deleteAuditByApplicationId(Long id);

    List<AuditVO> selectAudit(AuditQueryParam auditQuery);

    int update(Audit audit);

    Integer selectRestAuditCount(AuditQueryParam auditQuery);

    int deleteById(Long id);
}
